<?php
$api = dirname(__FILE__) . '/..';
Yii::setPathOfAlias('api', $api);

return array(
    'import'=>array(
        'api.helpers.*',
        'api.components.*',
        'api.models.*',
        'api.controllers.*',
        'api.extensions.jabber.*',
    ),
    'components'=>array(
        'CURL' =>array(
            'class' => 'api.extensions.curl.Curl',
        ),
        'geodesy' =>array(
            'class' => 'api.extensions.geodesy.Geodesy',
        ),
        'secureCookie' => array(
            'class' => 'SecureCookie',
            'cookieDomain' => '.main.loc',
            'cookieName' => 'sdata__',
            'duration' => 0x6FFFFFFF,
            'secretKey' => 'fnf45gGEd53t3_gfj46434',
        ),
        'email'=>array(
            'class'=>'api.extensions.email.Email',
            'delivery'=>'php', //Will use the php mailing function.
            //May also be set to 'debug' to instead dump the contents of the email into the view
        ),
    ),
    'params'=>array(
        'frontendUrl' => 'http://main.loc',
    ),
);
